<?php

class Db_Join {

	public function fromRelation ($exp) {
		$exp = explode('.', $exp);
		$module = $exp[0];
		$relation = $exp[1];
		
		$module = Db::model($module);
		$relation = $module->relations[$relation];
	}

}